/*
 * @Author: TJN tjn@246@126.com
 * @Date: 2024-07-16 15:29:26
 * @LastEditors: TJN tjn@246@126.com
 * @LastEditTime: 2024-07-16 16:37:30
 * @FilePath: \router\vite\plugins\index.ts
 * @Description:
 *
 * Copyright (c) 2024 by ${git_name_email}, All Rights Reserved.
 */

import vue from "@vitejs/plugin-vue";
import { Plugin } from "vite";
import { getupMockPlugin } from "./mock";
export default function setupPlugins(IsBuild: boolean, env: viteEnv) {
  const plugins: Plugin[] = [vue()];

  plugins.push(getupMockPlugin(IsBuild));
  return plugins;
}
